package org.millioncall.yueyoga.admin.model;

import org.apache.commons.lang.StringUtils;

public class CardReports {
	private Integer id; // 卡的编号
	private String cardName; // 卡种名称
	private String cardType; // 卡种类型
	private double cardPrice; // 卡种基价
	private String cardStrTime; // 有效开始时间
	private String cardEndTime; // 有效结束时间
	private Integer cardCount; // 有效次数
	private String hall; // 分馆
	private Integer newSellCount = 0; // 新销售卡数
	private double newSellAmount = 0; // 新销售总金额
	private double newSellMean = 0; // 新销售均价
	private Integer depCount = 0; // 定金卡数
	private double depAmount = 0; // 定金总金额
	private double depMean = 0; // 定金均价
	private Integer renewCount = 0; // 续费卡数
	private double renewAmount = 0; // 续费总金额
	private double renewMean = 0; // 续费均价
	private Integer refundCount = 0; // 退费卡数
	private double refundAmount = 0; // 退费总金额
	private double refundMean = 0; // 退费均价
	private Integer total = 0; // 总数量
	private double totalAmount = 0; // 总金额
	private String consume; // 消费类型
	private Integer count = 0;// 卡的数量
	private double avg = 0; // 均价

	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public double getCardPrice() {
		return cardPrice;
	}

	public void setCardPrice(double cardPrice) {
		this.cardPrice = cardPrice;
	}

	public String getCardStrTime() {
		if (StringUtils.isNotBlank(cardStrTime)) {
			return cardStrTime.substring(0, 10);
		}
		return cardStrTime;
	}

	public void setCardStrTime(String cardStrTime) {
		this.cardStrTime = cardStrTime;
	}

	public String getCardEndTime() {
		if (StringUtils.isNotBlank(cardEndTime)) {
			return cardEndTime.substring(0, 10);
		}
		return cardEndTime;
	}

	public void setCardEndTime(String cardEndTime) {
		this.cardEndTime = cardEndTime;
	}

	public String getHall() {
		return hall;
	}

	public void setHall(String hall) {
		this.hall = hall;
	}

	public Integer getNewSellCount() {
		return newSellCount;
	}

	public void setNewSellCount(Integer newSellCount) {
		this.newSellCount = newSellCount;
	}

	public double getNewSellAmount() {
		return newSellAmount;
	}

	public void setNewSellAmount(double newSellAmount) {
		this.newSellAmount = newSellAmount;
	}

	public double getNewSellMean() {
		return newSellMean;
	}

	public void setNewSellMean(double newSellMean) {
		this.newSellMean = newSellMean;
	}

	public Integer getDepCount() {
		return depCount;
	}

	public void setDepCount(Integer depCount) {
		this.depCount = depCount;
	}

	public double getDepAmount() {
		return depAmount;
	}

	public void setDepAmount(double depAmount) {
		this.depAmount = depAmount;
	}

	public double getDepMean() {
		return depMean;
	}

	public void setDepMean(double depMean) {
		this.depMean = depMean;
	}

	public Integer getRenewCount() {
		return renewCount;
	}

	public void setRenewCount(Integer renewCount) {
		this.renewCount = renewCount;
	}

	public double getRenewAmount() {
		return renewAmount;
	}

	public void setRenewAmount(double renewAmount) {
		this.renewAmount = renewAmount;
	}

	public double getRenewMean() {
		return renewMean;
	}

	public void setRenewMean(double renewMean) {
		this.renewMean = renewMean;
	}

	public Integer getRefundCount() {
		return refundCount;
	}

	public void setRefundCount(Integer refundCount) {
		this.refundCount = refundCount;
	}

	public double getRefundAmount() {
		return refundAmount;
	}

	public void setRefundAmount(double refundAmount) {
		this.refundAmount = refundAmount;
	}

	public double getRefundMean() {
		return refundMean;
	}

	public void setRefundMean(double refundMean) {
		this.refundMean = refundMean;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public double getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(double totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCardCount() {
		return cardCount;
	}

	public void setCardCount(Integer cardCount) {
		this.cardCount = cardCount;
	}

	public String getConsume() {
		return consume;
	}

	public void setConsume(String consume) {
		this.consume = consume;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public double getAvg() {
		return avg;
	}

	public void setAvg(double avg) {
		this.avg = avg;
	}

}
